<h2><?php echo $sanitize->html($gallery['Gallery']['title']); ?></h2>
<div class="list">
	<?php
		foreach ($gallery['Image'] as $image) {
			echo '<div class="thumb">';
			echo $lilgallery->link($lilgallery->thumb($image), $image, null, null, false);
			echo '</div>';
		}
	?>
</div>